package com.bai.websocketandmybatisplus.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("t_user")
@ApiModel("用户信息")
public class User {
    // 用户id
    @ApiModelProperty("用户id")
    private String id;

    // 用户名称
    @ApiModelProperty("名称")
    @TableField("name")
    private String name;

    // 用户年龄
    @ApiModelProperty("年龄")
    @TableField("age")
    private Integer age;

}
